package com.punai.standard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.standard.domain.StaFbChapter;
import com.punai.standard.domain.template.StaFbChapterExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分包费用项章节Mapper接口
 *
 * @author zxw
 * @date 2022-12-13
 */
public interface StaFbChapterMapper extends BaseMapper<StaFbChapter>
{
    /**
     * 查询分包费用项章节
     *
     * @param id 分包费用项章节主键
     * @return 分包费用项章节
     */
    public StaFbChapter selectStaFbChapterById(@Param("versionId")String versionId, @Param("id")String id);

    /**
     * 查询分包费用项章节列表
     *
     * @param staFbChapter 分包费用项章节
     * @return 分包费用项章节集合
     */
    public List<StaFbChapter> selectStaFbChapterList(StaFbChapter staFbChapter);

    List<StaFbChapterExcel> selectExport(@Param("versionId") String versionId);


    /**
     * 删除分包费用项章节
     *
     * @param id 分包费用项章节主键
     * @return 结果
     */
    public int deleteStaFbChapterById(String id);

    /**
     * 批量删除分包费用项章节
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStaFbChapterByIds(String[] ids);

    List<String> selectChildrenIdById(@Param("id") String id, @Param("versionId") String versionId);

    public List<StaFbChapter> queryContrast(@Param("versionId")String versionId, @Param("ids") String[] ids);
}
